package com.example.yaml;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 描述：
 * 作者 张超
 * 时间 2018/11/5
 * 项目 springboot-demo v1.0
 * 版本 v1.0
 */
@Setter
@Getter
@ToString
@Component
@ConfigurationProperties(prefix = "person")
public class Person {

    private String name;

    private Date birth;

    private Map<String,Object> maps;

    private List<String> lists;

    private Dog dog;

}
